home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / DTS Sample Code / Snippets / Platforms & Tools / MacApp / PICTDialog / MDialogs.cp < prev    next >
Encoding:
Text File  |  1992-01-01  |  817 b   |  25 lines  |  [TEXT/MPS ]

  1. // Copyright © 1991 Apple Computer, Inc. All rights reserved.
  2.  
  3. #include "UDialogs.h"
  4.  
  5.  
  6. TDialogsApplication    *gDialogsApplication;
  7.  
  8.  
  9. #pragma segment Main
  10. void main()
  11. {
  12.     InitToolBox();                                                    //    essential toolbox and utilities
  13.     if (ValidateConfiguration(&gConfiguration)){            //    make sure we can run
  14.         InitUMacApp(8);                                             //    8 calls to MoreMasters
  15.         InitUTEView();                                                // prevent code strip
  16.         InitUDialog();                                                // prevent code strip
  17.         gDialogsApplication = new TDialogsApplication;    //    create an application object
  18.         FailNIL(gDialogsApplication);                            //    make sure enough memory
  19.         gDialogsApplication->IDialogsApplication();        //    initialize the application
  20.         gDialogsApplication->Run();                            //    run the application
  21.     }
  22.     else
  23.         StdAlert(phUnsupportedConfiguration);            //    tell user we can't run
  24. }
  25.